//This code was created with the help of Cairngorm Creator by Tyler Beck.
//The portions of this document created by Cairngorm Creator 
//are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
//CONDITIONS OF ANY KIND, either express or implied.
//========================================================



package net.optix.ip.vo
{
	public class UserVO
	{
		public var userID:int;
		public var firstName:String;
		public var lastName:String;
		public var email:String;
		public var password:String;
		public var address:String;
		public var city:String;
		public var state:String;
		public var country:String;
		public var postalCode:String;
		public var language:String;
		public var workPhone:String;
		public var homePhone:String;
		public var cellPhone:String;
		public var fax:String;
		
		//add at 2009-3-27
		public var bService:int;
		
		public static function purseUser(value:XML):UserVO
		{
			var user:UserVO		=	new UserVO();
			try
			{
				user.userID		=	value.UserID;
				user.firstName	=	value.FirstName;
				user.lastName	=	value.LastName;
				user.email		=	value.Email;
				user.address	=	value.Address;
				user.city		=	value.City;
				user.state		=	value.State;
				user.country	=	value.Country;
				user.postalCode	=	value.PostalCode;
				user.homePhone	=	value.HomePhone;
				user.workPhone	=	value.WorkPhone;
				user.cellPhone	=	value.CellPhone;
				user.fax		=	value.Fax;
				
				//add at 2009-3-27
				user.bService	=	value.BService;
			}
			catch(error:Error){}
			
			return user;
		}
	}
}